﻿<%@ Page Title="" Language="C#" MasterPageFile="~/My/My.master" AutoEventWireup="true" CodeBehind="Settings.aspx.cs" Inherits="OpenPhotoAlbum.My.Settings" %>
<%@ Register Assembly="OpenPhotoAlbum" Namespace="OpenPhotoAlbum.Controls" TagPrefix="cc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ph1" runat="server">
<div class="settings">
<cc:TabPanels ID="tabPanels" runat="server" />
<cc:TabPanel ID="pnlChangePassword" runat="server" CssClass="inputTable">
	<table>
		<tr>
			<td align="right" class="fieldNames"><asp:Literal ID="ltrOldPassword" runat="server" /></td>
			<td align="left" class="inputAreas"><asp:TextBox ID="tbOldPassword" runat="server" TextMode="Password" /></td>
		</tr>
		<tr>
			<td align="right"><asp:Literal ID="ltrNewPassword1" runat="server" /></td>
			<td align="left"><asp:TextBox ID="tbNewPassword1" runat="server" TextMode="Password" /></td>
		</tr>
		<tr>
			<td align="right"><asp:Literal ID="ltrNewPassword2" runat="server" /></td>
			<td align="left"><asp:TextBox ID="tbNewPassword2" runat="server" TextMode="Password" /></td>
		</tr>
		<tr><td colspan="2" align="center" class="btn"><asp:Button ID="btnSaveNewPassword" runat="server" /></td></tr>
		<tr><td align="center" colspan="2"><cc:Message ID="message" runat="server" /></td></tr>
	</table>
</cc:TabPanel>
<cc:TabPanel ID="pnlUpdateProfile" runat="server" CssClass="inputTable">
	<table>
		<tr>
			<td align="right" class="fieldNames"><asp:Literal ID="ltrEmail" runat="server" /></td>
			<td align="left" class="inputArea"><asp:TextBox ID="tbEmail" runat="server" CssClass="email" /></td>
		</tr>
		<tr><td colspan="2" align="center" class="btn"><asp:Button ID="btnSaveProfile" runat="server" /></td></tr>
		<tr><td colspan="2" align="center"><cc:Message ID="messageProfile" runat="server" /></td></tr>
	</table>
</cc:TabPanel>
<cc:TabPanel ID="pnlIcon" runat="server" CssClass="icon">
	<div class="current"><%= Resources.Strings.Settings_CurrentIcon %><img id="myIcon" src="<%= CurrentIconUrl %>" alt="" /></div>
	<div class="upload">
		<div><asp:FileUpload ID="fileUpload" runat="server" /></div>
		<div><cc:Message ID="messageIcon" runat="server" /></div>
		<div><asp:Button ID="btnSaveIcon" runat="server" /></div>
		<div class="note"><%= Resources.Strings.Settings_SaveNewIconNote %></div>
	</div>
	<script type="text/javascript">
		$(function() { var img = $('#myIcon'); var src = img.attr('src'); img.attr('src', src + '&seed=' + Math.random()); });
	</script>
</cc:TabPanel>
</div>
</asp:Content>
